package com.tuo51.manager.domain;

import com.tuo51.foudation.model.Domain;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@Table(name = "op_dealer")
public class Dealer extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "name", nullable = false, unique = true)
    private String name;

    @Column(name = "phone", nullable = false, unique = true)
    private String phone;

    @Column(name = "comment", nullable = true)
    private String comment;

}